Release Notes
- January 2025
- October 2024
- July 2024
- November 2023
- Feedback and Contact
Get bill-to by shipToId [Deprecated]
Get bill-to by shipToId
GET
/
api-cart
/
bill-to
/
ship-to
/
{shipToId}
curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/ship-to/{shipToId}
{
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day",
"cost": {
"currency": "USD",
"amount": 5.99
}
},
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billTo": [
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z",
"__v": 0
}
],
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"shipToId": 1,
"__v": 0,
"cartId": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}
Path Parameters
Required string length:
24
Example:
"5e5818a84d030c206b2ffb02"
Response
200
application/json
Getting Bill To By ID
Minimum length:
3
Example:
"1a2b3c4d5e6f7g8h9i0j"
Example:
"Fedex"
Example:
"Next Day"
Maximum length:
140
Example:
"123 Main Street"
Maximum length:
140
Example:
"Seattle"
Maximum length:
25
Example:
"WA"
Maximum length:
140
Example:
"United States of America"
Required string length:
3 - 25
Example:
"10008-1234"
Required string length:
5 - 100
Example:
"johnsmith@fabric.inc"
Maximum length:
140
Example:
"Leave at the back door."
Maximum length:
240
Example:
"ABC Boulevard"
Maximum length:
24
Example:
"TBD"
Required string length:
3 - 24
Example:
"Visa Credit"
Required string length:
4
Example:
"1234"
Required range:
x >= 0.01
Example:
149.99
Maximum length:
140
Example:
"123 Main Street"
Maximum length:
140
Example:
"Seattle"
Maximum length:
25
Example:
"WA"
Maximum length:
140
Example:
"United States of America"
Required string length:
3 - 25
Example:
"10008-1234"
Required string length:
5 - 100
Example:
"johnsmith@fabric.inc"
Maximum length:
140
Example:
"Leave at the back door."
Maximum length:
240
Example:
"ABC Boulevard"
Maximum length:
24
Example:
"TBD"
Example:
1
Example:
"5e5818a84d030c206b2ffb02"
Example:
"5fee9d59f2f08a1b3cbdea08"
Example:
"2020-12-31T02:09:53.914Z"
Example:
"2020-12-31T02:09:53.914Z"
Example:
0
Available options:
BOPIS
, SHIP_TO_STORE
, SHIP_TO_ADDRESS
, STORE_PICKUP
Example:
"SHIP_TO_ADDRESS"
Example:
"FR1000"
Example:
1
Example:
0
Required string length:
24
Example:
"5e5818a84d030c206b2ffb02"
Example:
"5fee9d59f2f08a1b3cbdea08"
Example:
"2020-12-31T02:09:53.914Z"
Example:
"2020-12-31T02:09:53.914Z"
Was this page helpful?
curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/ship-to/{shipToId}
{
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day",
"cost": {
"currency": "USD",
"amount": 5.99
}
},
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billTo": [
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z",
"__v": 0
}
],
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"shipToId": 1,
"__v": 0,
"cartId": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}